package collectdemo13.example01;

public class Student
{
	private String name = null;
	private int age = 0;
	private School school = null;
	
	public Student(String name, int age)
	{
		super();
		this.setName(name);
		this.setAge(age);
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getAge()
	{
		return age;
	}
	public void setAge(int age)
	{
		this.age = age;
	}
	public School getSchool()
	{
		return school;
	}
	public void setSchool(School school)
	{
		this.school = school;
	}
	@Override
	public String toString()
	{
		return "姓名："+this.name+"，年龄："+this.age;
	}
	
}
